# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=emacs-taxy-magit-section
pkgver=0.13
pkgrel=0
_pkgreal=taxy-magit-section
pkgdesc="View Taxy structs in a Magit Section buffer"
url="https://elpa.gnu.org/packages/taxy-magit-section.html"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	cmd:emacs
	emacs-magit-section
	emacs-taxy
	"
makedepends="emacs-nox"
source="https://github.com/alphapapa/taxy.el/archive/taxy-magit-section-$pkgver/emacs-taxy-magit-section-$pkgver.tar.gz"
builddir="$srcdir/taxy.el-$_pkgreal-$pkgver"
options="!check" # no tests provided

build() {
	emacs -batch -q -no-site-file -L . \
		-f batch-byte-compile \
		./*.el
}

package() {
	install -Dvm644 ./*.el ./*.elc \
		-t "$pkgdir"/usr/share/emacs/site-lisp/taxy/

	cd "$pkgdir"/usr/share/emacs/site-lisp/taxy
	emacs -batch -q -no-site-file \
		-eval "(loaddefs-generate \".\" \"$_pkgreal-loaddefs.el\")"
}

sha512sums="
625b485cbb079e60d215ed3c4bee5899756b00dec92baa5f0d2e94b7830c1375e0d65bce53f8051137b1e7870336da3e2f6faf216f44cf54e256d0cd312fd81d  emacs-taxy-magit-section-0.13.tar.gz
"
